﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace LS.Models
{
    public class MemberContext : DbContext
    {
        public MemberContext()
            : base("DefaultConnection")
        {
        }

        public DbSet<Member> Members { get; set; }

        public DbSet<UserProfile> UserProfiles { get; set; }
    }

    [Table("Member")]
    public class Member
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [ForeignKey("RelatedUser")]
        public int UsrId { get; set; }
        public virtual UserProfile RelatedUser { get; set; }

        public string PhoneNumber1 { get; set; }

        public string PhoneNumber2 { get; set; }

        public string PhoneNumber3 { get; set; }

        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }

        public string Address1 { get; set; }
        public string Address2 { get; set; }

        public DateTime UpdateDate { get; set; }


    }
    public class MemberModel
    {
    }
}